package cn.tedu.scc.mapper;

import cn.tedu.scc.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from user")
    @Result(property = "recordDate",column = "record_date")
    List<User> select();

    @Delete("delete from user where id=#{id}")
    void deleteById(int id);
}
